<template>
  <div class="updatePwd">
    <div  v-if="sureStatus === '0'">
      <div class="Cheader">
        <span class="title">&nbsp;安全设置 > 修改手机号码</span>
        <span class="return" @click="goback"><i class="el-icon-arrow-left"></i> 返回</span>
      </div>
      <div class="content">
        <div class="input">
          <span class="title">已绑定的手机号是：15168548878</span>
        </div>
        <div class="input">
        <span>
           <el-input class="handInput" placeholder="请输入验证码" style="width: 265px" ></el-input>
        </span>
          <span>
            <el-button type="primary" style="width: 110px; background-color: #EFEFEF; color: #323842; border-color: #EFEFEF">发送验证码</el-button>
        </span>
        </div>
        <div class="input">
          <el-input class="handInput" placeholder="请输入新手机号码" style="width: 380px" ></el-input>
        </div>
        <div class="input">
        <span>
           <el-input class="handInput" placeholder="请输入验证码" style="width: 265px" ></el-input>
        </span>
          <span>
            <el-button type="primary" style="width: 110px; background-color: #EFEFEF; color: #323842; border-color: #EFEFEF">发送验证码</el-button>
        </span>
        </div>
        <div class="input">
          <el-button type="primary" style="width: 380px" @click="saveInfo">确定</el-button>
        </div>
      </div>
    </div>
    <update-phone-success  v-if="sureStatus === '1'" v-on:sureStatus = "tabStaus"></update-phone-success>
  </div>
</template>
<script>
  import updatePhoneSuccess from './updatePhoneSuccess'

  export default {
    components: {
      updatePhoneSuccess
    },
    data() {
      return {
        btnStatus: '0',
        sureStatus: '0'
      }
    },
    methods: {
      goback() {
        this.$emit('btnStatus', this.btnStatus)
      },
      saveInfo() {
        this.sureStatus = '1'
      },
      tabStaus(activStatus) {
        this.sureStatus = activStatus
      }
    }
  }
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .updatePwd{
    .Cheader {
      width: 98%;
      height: 60px;
      line-height: 60px;
      border-bottom: 1px solid #E7E7E7;
      .title {
        border-left: 5px solid #25B6C7;
      }
      .return{
        float: right;
        color: #25B6C7;
        cursor: pointer;
      }
    }
    .content{
      width: 380px;
      height: 400px;
      margin: 100px auto;
      .input{
        margin-top: 15px;
        .title{
          font-size:14px;
          font-family:MicrosoftYaHei;
          font-weight:400;
          color:rgba(105,114,126,1);
        }
      }
    }
  }

</style>
